package com.xw.service.impl;

import com.xw.dao.OperationLogDao;
import com.xw.entity.OperationLog;
import com.xw.service.OperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @Description: 针对表【operation_log】的数据库操作Service实现
 * @Author: 72478
 * @Date: 2024/12/18 16:53
 * @Version: 1.0
 */
@Service
public class OperationLogServiceImpl implements OperationLogService {

    @Autowired
    private OperationLogDao operationLogDao;

    @Override
    public void saveOperationLog(OperationLog log) {
        operationLogDao.insertOperationLog(log);
    }

    @Override
    public List<OperationLog> getAllLogs() {
        return operationLogDao.selectAllLogs();
        // 调用 DAO 层的 selectAllLogs 方法
    }
}
